package thread;

/**
 * @ClassName ThreadDemo
 * @Description 继承thread
 * @Author zhangjia
 * @Date 2021/9/9 0:37
 * @Version 1.0
 */
public class ThreadDemo {
    public static class MyThread extends Thread{
        @Override
        public void run() {
            System.out.println("来自继承Thread的线程~~");
        }
    }

    public static void main(String[] args) {
        MyThread t = new MyThread();
        t.start();
    }
}
